﻿<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="hna"  uri="http://www.hna.net/HnaTag.tld"%>
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<link rel="Bookmark" href="/favicon.ico">
<link rel="Shortcut Icon" href="/favicon.ico" />

<link rel="stylesheet" type="text/css" href="${ctx}/lib/Hui-iconfont/1.0.8/iconfont.css" />
<link rel="stylesheet" type="text/css" href="${ctx}/static/h-ui/css/H-ui.min.css" />
<link rel="stylesheet" type="text/css" href="${ctx}/static/h-ui.admin/css/H-ui.admin.css" />
<link rel="stylesheet" type="text/css" href="${ctx}/static/h-ui.admin/skin/default/skin.css" id="skin" />
<link rel="stylesheet" type="text/css" href="${ctx}/static/h-ui.admin/css/style.css" />
<title>云算盘 v3.1</title>
</head>
<body>
	<header class="navbar-wrapper">
		<div class="navbar navbar-fixed-top">
			<div class="container-fluid cl">
				<span class="logo navbar-logo f-l mr-10 hidden-xs">云算盘</span>
				<nav class="nav navbar-nav">
					<ul class="cl">
						<li class="dropDown dropDown_hover">
							<a href="javascript:;" class="dropDown_A">
								[ ${currentZhangTao.qymc } ] <span style="font-size: 11px;">${currentJieZhang.jzYear }年${currentJieZhang.jzMonth }期</span>
							</a>
						</li>
					</ul>
				</nav>
				<nav id="Hui-userbar" class="nav navbar-nav navbar-userbar hidden-xs">
					<ul class="cl">
						<li class="dropDown dropDown_hover"><a href="#" class="dropDown_A">
								${currentUser.username }<i class="Hui-iconfont">&#xe6d5;</i>
							</a>
							<ul class="dropDown-menu menu radius box-shadow">
								<li><a href="javascript:;" onClick="myselfinfo()">个人信息</a></li>
								<li><a href="#" class="qhzt">切换账套</a></li>
								<li><a href="#" class="logout">退出</a></li>
							</ul></li>
						<li id="Hui-msg"><a href="#" title="消息">
								<span class="badge badge-danger"></span><i class="Hui-iconfont" style="font-size: 18px">&#xe68a;</i>
							</a></li>
						<li id="Hui-skin" class="dropDown right dropDown_hover"><a href="javascript:;" class="dropDown_A" title="换肤">
								<i class="Hui-iconfont" style="font-size: 18px">&#xe62a;</i>
							</a>
							<ul class="dropDown-menu menu radius box-shadow">
								<li><a href="javascript:;" data-val="default" title="默认（黑色）">默认（深蓝）</a></li>
								<li><a href="javascript:;" data-val="blue" title="蓝色">蓝色</a></li>
								<li><a href="javascript:;" data-val="green" title="绿色">绿色</a></li>
								<li><a href="javascript:;" data-val="red" title="红色">红色</a></li>
								<li><a href="javascript:;" data-val="yellow" title="黄色">黄色</a></li>
								<li><a href="javascript:;" data-val="orange" title="橙色">橙色</a></li>
								<li><a href="javascript:;" data-val="danlan" title="白色">白色</a></li>
							</ul></li>
					</ul>
				</nav>
			</div>
		</div>
	</header>
	<aside class="Hui-aside" style="background-color: #F5FAFE">
		<div class="menu_dropdown bk_2">
			<hna:permission privilege="pinzhengguanli">
				<dl id="menu-article">
					<dt>
						<i class="Hui-iconfont">&#xe616;</i> 凭证管理<i class="Hui-iconfont menu_dropdown-arrow">&#xe6d5;</i>
					</dt>
					<dd>
						<ul>
							<hna:permission privilege="pingZheng.add">
								<li><a data-href="${ctx}/pingZheng/toBigAdd" data-title="录凭证" href="javascript:void(0)">录凭证</a></li>
							</hna:permission>
							<hna:permission privilege="pingZheng">
								<li><a data-href="${ctx}/pingZheng/list" data-title="查凭证" href="javascript:void(0)">查凭证</a></li>
							</hna:permission>
							<li><a data-href="${ctx}/testHtml/article-list.html" data-title="凭证汇总表" href="javascript:void(0)">凭证汇总表</a></li>
						</ul>
					</dd>
				</dl>
			</hna:permission>
			
			<hna:permission privilege="jieZhang">
			<dl id="menu-article">
				<dt>
					<hna:permission privilege="jieZhang.view">
						<i class="Hui-iconfont">&#xe616;</i><a data-href="${ctx}/jieZhang/list" data-title="结账" href="javascript:void(0)"> 结&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;账</a>
					</hna:permission>
				</dt>
			</dl>
			</hna:permission>
			
			
			<hna:permission privilege="report">
			<dl id="menu-tongji">
				<dt>
					<i class="Hui-iconfont">&#xe61a;</i> 报表管理<i class="Hui-iconfont menu_dropdown-arrow">&#xe6d5;</i>
				</dt>
				<dd>
					<ul>
						<hna:permission privilege="reportBalanceSheet.view"><li><a data-href="${ctx}/reportBalanceSheet/list" data-title="资产负载表" href="javascript:void(0)">资产负载表</a></li></hna:permission>
						<hna:permission privilege="reportProfitStatement.view"><li><a data-href="${ctx}/reportProfitStatement/list" data-title="利润表" href="javascript:void(0)">利润表</a></li></hna:permission>
						<hna:permission privilege="reportCashFlowStatement.view"><li><a data-href="${ctx}/reportCashFlowStatement/list" data-title="现金流量表" href="javascript:void(0)">现金流量表</a></li></hna:permission>
						<hna:permission privilege="kmYuEBiao.view"><li><a data-href="${ctx}/kmYuEBiao/list" data-title="科目余额表" href="javascript:void(0)">科目余额表</a></li></hna:permission>
						<hna:permission privilege="kmYuEBiao.mxView"><li><a data-href="${ctx}/kmYuEBiao/mingXiList" data-title="明细账" href="javascript:void(0)">明细账</a></li></hna:permission>
					</ul>
				</dd>
			</dl>
			</hna:permission>
			
			<hna:permission privilege="qitaguanli">
			<dl id="menu-product">
				<dt>
					<i class="Hui-iconfont">&#xe622;</i> 其他管理<i class="Hui-iconfont menu_dropdown-arrow">&#xe6d5;</i>
				</dt>
				<dd>
					<ul>
						<hna:permission privilege="dickm.view"><li><a data-href="${ctx}/dickm/list" data-title="科目管理" href="javascript:void(0)">科目管理</a></li></hna:permission>
						<hna:permission privilege="dickm.setChuShiYuEView"><li><a data-href="${ctx}/dickm/toSetChuShiYuE" data-title="初始余额" href="javascript:void(0)">初始余额</a></li></hna:permission>
						<hna:permission privilege="reportItem.view"><li><a data-href="${ctx}/reportItem/list" data-title="报表统计项" href="javascript:void(0)">报表计项</a></li></hna:permission>
					</ul>
				</dd>
			</dl>
			</hna:permission>
			
			<hna:permission privilege="xitongguanli">
			<dl id="menu-system">
				<dt>
					<i class="Hui-iconfont">&#xe62e;</i> 系统管理<i class="Hui-iconfont menu_dropdown-arrow">&#xe6d5;</i>
				</dt>
				<dd>
					<ul>
						<hna:permission privilege="sysNodeLog.view"><li><a data-href="${ctx}/sysNodeLog/list" data-title="工作节点" href="javascript:void(0)">工作节点</a></li></hna:permission>
						<hna:permission privilege="dicObj.view"><li><a data-href="${ctx}/dicObj/list" data-title="字典管理" href="javascript:void(0)">字典管理</a></li></hna:permission>
						<hna:permission privilege="sysUser.view"><li><a data-href="${ctx}/sysUser/list" data-title="用户管理" href="javascript:void(0)">用户管理</a></li></hna:permission>
						<hna:permission privilege="sysDept.view"><li><a data-href="${ctx}/sysDept/list" data-title="部门管理" href="javascript:void(0)">部门管理</a></li></hna:permission>
						<hna:permission privilege="sysRole.view"><li><a data-href="${ctx}/sysRole/list" data-title="角色管理" href="javascript:void(0)">角色管理</a></li></hna:permission>
						<hna:permission privilege="sysAuthority.view"><li><a data-href="${ctx}/sysAuthority/list" data-title="权限管理" href="javascript:void(0)">权限管理</a></li></hna:permission>
						<hna:permission privilege="sysUser.editPassword"><li><a data-href="${ctx}/sysUser/toEditPassword" data-title="密码修改" href="javascript:void(0)">密码修改</a></li></hna:permission>
						<hna:permission privilege="sysLog.view"><li><a data-href="${ctx}/sysLog/list" data-title="系统日志" href="javascript:void(0)">系统日志</a></li></hna:permission>
						<hna:permission privilege="sysMethodCallTime.view"><li><a data-href="${ctx}/sysMethodCallTime/list" data-title="方法耗时" href="javascript:void(0)">方法耗时</a></li></hna:permission>
					</ul>
				</dd>
			</dl>
			</hna:permission>
			
		</div>
	</aside>
	<div class="dislpayArrow hidden-xs">
		<a class="pngfix" href="javascript:void(0);" onClick="displaynavbar(this)"></a>
	</div>
	<section class="Hui-article-box">
		<div id="Hui-tabNav" class="Hui-tabNav hidden-xs" style="background-color: #F4F4F4">
			<div class="Hui-tabNav-wp">
				<ul id="min_title_list" class="acrossTab cl" style="padding-top: 5px;">
					<li class="active"><span data-href="${ctx}/login/toWelcome">首页</span></li>
				</ul>
			</div>
			<div class="Hui-tabNav-more btn-group">
				<a id="js-tabNav-prev" class="btn radius btn-default size-S" href="javascript:;">
					<i class="Hui-iconfont">&#xe6d4;</i>
				</a>
				<a id="js-tabNav-next" class="btn radius btn-default size-S" href="javascript:;">
					<i class="Hui-iconfont">&#xe6d7;</i>
				</a>
			</div>
		</div>
		<div id="iframe_box" class="Hui-article">
			<div class="show_iframe">
				<div style="display: none" class="loading"></div>
				<iframe scrolling="yes" frameborder="0" src="${ctx}/login/toWelcome"></iframe>
			</div>
		</div>
	</section>

	<div class="contextMenu" id="Huiadminmenu">
		<ul>
			<li id="closethis">关闭当前</li>
			<li id="closeall">关闭全部</li>
		</ul>
	</div>
	<!--_footer 作为公共模版分离出去-->
	<script type="text/javascript" src="${ctx}/lib/jquery/1.9.1/jquery.min.js"></script>	
	<script type="text/javascript" src="${ctx}/lib/layer/2.4/layer.js"></script>
	<script type="text/javascript" src="${ctx}/static/h-ui/js/H-ui.min.js"></script>
	<script type="text/javascript" src="${ctx}/static/h-ui.admin/js/H-ui.admin.js"></script>
	<!--/_footer 作为公共模版分离出去-->

	<!--请在下方写此页面业务相关的脚本-->
	<script type="text/javascript" src="${ctx}/lib/jquery.contextmenu/jquery.contextmenu.r2.js"></script>
	<script type="text/javascript">
		/*个人信息*/
		function myselfinfo () {
			layer.open({
				type : 1, area : [ '300px', '200px' ], fix : false, //不固定
				maxmin : true, shade : 0.4, title : '查看信息', content : '<div>管理员信息</div>'
			});
		}

		/*资讯-添加*/
		function article_add (title, url) {
			var index = layer.open({
				type : 2, title : title, content : url
			});
			layer.full(index);
		}
		/*图片-添加*/
		function picture_add (title, url) {
			var index = layer.open({
				type : 2, title : title, content : url
			});
			layer.full(index);
		}
		/*产品-添加*/
		function product_add (title, url) {
			var index = layer.open({
				type : 2, title : title, content : url
			});
			layer.full(index);
		}
		/*用户-添加*/
		function member_add (title, url, w, h) {
			layer_show(title, url, w, h);
		}
		
		//刷新页面
		function replaceByUrl(url){
			$(window.document).find("iframe[src^='"+url+"']")[0].contentWindow.search();
		}
		
		//关闭弹窗
		function layerClose(childWindowName){
			var index = layer.getFrameIndex(childWindowName);
			layer.close(index);
		}
	</script>
	
	<script type="text/javascript">
	$(function () {
		$(".logout").click(function() {
			if (confirm('确定退出？')) {
				$.post("${ctx}/login/logout", null, function(result){
					if ("succ" == result) {
						top.location.href = "${ctx}/login/toLogin";
					} else {
						alert(result);
					}
				});
			}
		});
		
		$(".qhzt").click(function() {
			top.location.href = "${ctx}/login/toztMain";
		});
	});
</script>
</body>
</html>